from django.conf.urls import url
from . import views

urlpatterns=[
    url(r'^$',views.index,name="index"),
    url(r'^photos/$',views.photoList,name="photoList"),
    url(r'^photos/add$',views.addPhoto,name="addPhoto"),
    url(r'^photos/insert$',views.insertPhoto,name="insertPhoto"),
    url(r'^photos/del/(?P<pid>[0-9]+)$',views.delPhoto,name="delPhoto"),
    url(r'^photos/edit/(?P<pid>[0-9]+)$',views.editPhoto,name="editPhoto"),
    url(r'^photos/update$',views.updatePhoto,name="updatePhoto"),

]